package cn.abcsys.cloud.devops.runtime.dao;

import java.sql.SQLException;
import java.util.List;

import cn.abcsys.cloud.devops.runtime.entity.Host;
/**
 * @author mayunhao
 * @date   June 15,2017
 */
public interface HostMapper {

	/**
	 * 创建
	 * @param host
	 * @return
	 * @throws SQLException
	 */
	public int insertHost(Host host) throws SQLException;

	/**
	 * 删除
	 * @param hostId
	 * @return
	 * @throws SQLException
	 */
	public int deleteHost(Integer hostId) throws SQLException;

	/**
	 * 修改
	 * @param record
	 * @return
	 * @throws SQLException
	 */
	public int updateHost(Host record) throws SQLException;

	/**
	 * 主机详情
	 * @param hostId
	 * @return
	 * @throws SQLException
	 */
	public Host getHostDetail(Integer hostId) throws SQLException;

	/**
	 * 批量查询
	 * @param type
	 * @param tenantId
	 * @return
	 * @throws SQLException
	 */
	public List<Host> selectHostList(Host host) throws SQLException;

}
